package com.pukea.app.medical.entity;

public class PatInfo {
	private String patid;
	private String patname;
	private String patsex;
	private String patsexname;
	private String patsfzh;
	private String patcsrq;
	private String patnl;
	private String patsg;
	private String pattz;
	private String accid;
	private String mobile;
	private String defaultflag;
	
	public PatInfo(String patid, String patname, String patsex,
			String patsexname, String patsfzh, String patcsrq, String patnl,
			String patsg, String pattz, String accid, String mobile,
			String defaultflag) {
		super();
		this.patid = patid;
		this.patname = patname;
		this.patsex = patsex;
		this.patsexname = patsexname;
		this.patsfzh = patsfzh;
		this.patcsrq = patcsrq;
		this.patnl = patnl;
		this.patsg = patsg;
		this.pattz = pattz;
		this.accid = accid;
		this.mobile = mobile;
		this.defaultflag = defaultflag;
	}
	
	public PatInfo() {
		// TODO Auto-generated constructor stub
	}

	public String getPatid() {
		return patid;
	}
	public void setPatid(String patid) {
		this.patid = patid;
	}
	public String getPatname() {
		return patname;
	}
	public void setPatname(String patname) {
		this.patname = patname;
	}
	public String getPatsex() {
		return patsex;
	}
	public void setPatsex(String patsex) {
		this.patsex = patsex;
	}
	public String getPatsexname() {
		return patsexname;
	}
	public void setPatsexname(String patsexname) {
		this.patsexname = patsexname;
	}
	public String getPatsfzh() {
		return patsfzh;
	}
	public void setPatsfzh(String patsfzh) {
		this.patsfzh = patsfzh;
	}
	public String getPatcsrq() {
		return patcsrq;
	}
	public void setPatcsrq(String patcsrq) {
		this.patcsrq = patcsrq;
	}
	public String getPatnl() {
		return patnl;
	}
	public void setPatnl(String patnl) {
		this.patnl = patnl;
	}
	public String getPatsg() {
		return patsg;
	}
	public void setPatsg(String patsg) {
		this.patsg = patsg;
	}
	public String getPattz() {
		return pattz;
	}
	public void setPattz(String pattz) {
		this.pattz = pattz;
	}
	public String getAccid() {
		return accid;
	}
	public void setAccid(String accid) {
		this.accid = accid;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getDefaultflag() {
		return defaultflag;
	}
	public void setDefaultflag(String defaultflag) {
		this.defaultflag = defaultflag;
	}
	@Override
	public String toString() {
		return "PatInfo [patid=" + patid + ", patname=" + patname + ", patsex="
				+ patsex + ", patsexname=" + patsexname + ", patsfzh="
				+ patsfzh + ", patcsrq=" + patcsrq + ", patnl=" + patnl
				+ ", patsg=" + patsg + ", pattz=" + pattz + ", accid=" + accid
				+ ", mobile=" + mobile + ", defaultflag=" + defaultflag + "]";
	}
	
	public String toJsonStr(){
		StringBuffer str = new StringBuffer();
		str.append("{");
		str.append("\"").append("patid").append("\":\"").append((getPatid()!=null)?getPatid():null).append("\",");
		str.append("\"").append("patname").append("\":\"").append((getPatname()!=null)?getPatname():null).append("\",");
		str.append("\"").append("patsex").append("\":\"").append((getPatsex()!=null)?getPatsex():null).append("\",");
		str.append("\"").append("patsexname").append("\":\"").append((getPatsexname()!=null)?getPatsexname():null).append("\",");
		str.append("\"").append("patsfzh").append("\":\"").append((getPatsfzh()!=null)?getPatsfzh():null).append("\",");
		str.append("\"").append("patcsrq").append("\":\"").append((getPatcsrq()!=null)?getPatcsrq():null).append("\",");
		str.append("\"").append("patnl").append("\":\"").append((getPatnl()!=null)?getPatnl():null).append("\",");
		str.append("\"").append("patsg").append("\":\"").append((getPatsg()!=null)?getPatsg():null).append("\",");
		str.append("\"").append("pattz").append("\":\"").append((getPattz()!=null)?getPattz():null).append("\",");
		str.append("\"").append("accid").append("\":\"").append((getAccid()!=null)?getAccid():null).append("\",");
		str.append("\"").append("mobile").append("\":\"").append((getMobile()!=null)?getMobile():null).append("\",");
		str.append("\"").append("defaultflag").append("\":\"").append((getDefaultflag()!=null)?getDefaultflag():null).append("\"");
		str.append("}");
		return str.toString();
	}
	
	
	
}
